package ru.study.thinkin.chapter8;

public class Music3 {
	public static void tune(Instrument i) {
		i.play(Note.MIDDLE_C);
	}
	public static void tuneAll(Instrument[] e) {
		for(Instrument i:e) {
			tune(i);
		}
	}
	public static void main(String[] args) {
		Instrument[] orchestra = new Instrument[]{new Wind(),new Percussion(),new WoodWind()};
		tuneAll(orchestra);
	}

}
